import { Component, OnInit, AfterContentInit, AfterContentChecked,OnDestroy } from '@angular/core';

@Component({
  selector: 'app-child',
  templateUrl: './child.component.html',
  styleUrls: ['./child.component.css']
})
export class ChildComponent implements OnInit, AfterContentInit, AfterContentChecked, OnDestroy {

  constructor() { }

  ngAfterContentInit(): void {
    console.log("子组件投影内容初始化完毕");
  }
  ngAfterContentChecked(): void {
    console.log("子组件投影内容变更监测完毕");
  }
  ngOnDestroy(): void {
    console.log("child1组件被销毁");
  }
  ngOnInit() {
  }

}
